﻿namespace EyeOpen.Dependency
{
    using System;
    using System.Collections.Generic;

    public static partial class DependencyContainer
    {
        public static T Resolve<T>()
        {
            return Container.Resolve<T>();
        }

        public static T Resolve<T>(string name)
        {
            return Container.Resolve<T>(name);
        }

        public static object Resolve(Type t)
        {
            return Container.Resolve(t);
        }

        public static object Resolve(Type t, string name)
        {
            return Container.Resolve(t, name);
        }

        public static IEnumerable<T> ResolveAll<T>()
        {
            return Container.ResolveAll<T>();
        }

        public static IEnumerable<object> ResolveAll(System.Type t)
        {
            return Container.ResolveAll(t);
        }

        public static void Teardown(object o)
        {
            Container.Teardown(o);
        }
    }
}
